<?php /* Smarty version Smarty-3.1.8, created on 2012-04-18 15:21:34
         compiled from "C:\xampp\htdocs\Projects\Project_step\themes\release\albums\preview.tpl" */ ?>
<?php /*%%SmartyHeaderCode:326374f86e59dbe74f4-73830855%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fc04a16e1944e18e56f8b88b2d96cc554f25e51e' => 
    array (
      0 => 'C:\\xampp\\htdocs\\Projects\\Project_step\\themes\\release\\albums\\preview.tpl',
      1 => 1334755289,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '326374f86e59dbe74f4-73830855',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4f86e59dc83123_91696405',
  'variables' => 
  array (
    'path' => 0,
    'img_id' => 0,
    'img_type' => 0,
    'coments' => 0,
    'coment' => 0,
    'isRight' => 0,
    'user_id' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f86e59dc83123_91696405')) {function content_4f86e59dc83123_91696405($_smarty_tpl) {?><script type="text/javascript">
$().ready(function() {
			ApplyMCE("comment");
		});
</script>


<div id="genres_folders">
	<img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
images/galery/images/<?php echo $_smarty_tpl->tpl_vars['img_id']->value;?>
<?php echo $_smarty_tpl->tpl_vars['img_type']->value;?>
" alt="image" style="width:100%"  />   
</div>

<div id="div_Comments">
	<?php  $_smarty_tpl->tpl_vars['coment'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['coment']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['coments']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['coment']->key => $_smarty_tpl->tpl_vars['coment']->value){
$_smarty_tpl->tpl_vars['coment']->_loop = true;
?>
    <div id="div_Comment" style="border:solid; border-color:#000; margin-top:20px;">
    	<div class="Caption" style="border-bottom:solid; border-color:#000;"> 
        	<span style="text-align:left; padding: 5px;"><?php echo $_smarty_tpl->tpl_vars['coment']->value->title;?>
</span>
            <?php if ($_smarty_tpl->tpl_vars['isRight']->value==true||$_smarty_tpl->tpl_vars['coment']->value->user_id==$_smarty_tpl->tpl_vars['user_id']->value){?>
            	<a href="" onclick="redMsg(this); return false;" name="<?php echo $_smarty_tpl->tpl_vars['coment']->value->id;?>
" id="RedMsg" style="margin-right: 5px; float:right">Редактировать</a>
                <a href="" onclick="delMsg(this); return false;" name="<?php echo $_smarty_tpl->tpl_vars['coment']->value->id;?>
" id="DelMsg" style="margin-right: 5px; float:right">Удалить</a>
            <?php }?>
        </div>
        <p style="text-align:left; padding: 5px;"><?php echo $_smarty_tpl->tpl_vars['coment']->value->text;?>
</p>
    </div>
    <?php } ?>
</div>

<div id="div_Comment_add">		
    <form>
        <p style="overflow:hidden">
            <span>Добавить комментарий:</span> <br />
            <textarea  style="width:100%; height: 100px; " name="comment" id="comment" ></textarea>
            <p>
                <button type="button" id="add_Msg" name="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['img_id']->value;?>
" onclick="addMsg()" >Добавить</button>
          	</p>
        </p>
    </form>	
</div><?php }} ?>